objc[989] objc_exception_throw failed.

Posted by thyrgle on Stack Overflow See other posts from Stack Overflow or by thyrgle
Published on 2010-05-17T05:04:04Z Indexed on 2010/05/17 5:10 UTC
Read the original article Hit count: 322

I was just adding some more CCSprites to a CCLayer and it just starts crashing giving me the error: objc[989] objc_exception_throw failed. Is there like a limit to the amount of CCSprites you can have on a screen or something? I added the CCSprites doing the following with the CCSprites already declared at interface:

    L1Circle1 = [CCSprite spriteWithFile:@"LaserCircle.png"];
    [L1Circle1 setPosition:ccp(180,180)];
    [self addChild:L1Circle1];

What am I doing wrong?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone